<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<%@page import="com.entities.projecttask.servicelayer.ProjectTasksListLayer"%>
<%@page import="com.core.utils.GlobalConstants"%>
<%@page import="com.entities.projecttask.actionscript.ActionScriptParserProjectTaskOpen"%>
<%@page import="com.entities.projectitem.actionscript.ActionScriptParserProjectOpen"%>
<%@page import="com.core.utils.StackItem"%>
<%@page import="com.core.ui.controller.StackNavigatorController"%>
<%@page import="com.core.ui.controller.TabSheetController"%>
<%@page import="com.core.managers.SessionManager"%>



<%@page import="java.util.List"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="css/header.css">
<link type="text/css" rel="stylesheet" href="css/menu.css">
<link type="text/css" rel="stylesheet" href="css/maincontainer.css">
<link type="text/css" rel="stylesheet" href="css/navigator.css">
<link type="text/css" rel="stylesheet" href="css/tableview.css">
<link type="text/css" rel="stylesheet" href="css/detailsview.css">
<link type="text/css" rel="stylesheet" href="css/actionbar.css">
<script type="text/javascript" src="js/jQuery/1.6.4/jquery.min.js"></script>

</head>

<%@taglib prefix="sorokina" uri="/WEB-INF/Sorokina.tld"%>

<body>

    <%
    	String objectId = request.getParameter("id");
        
        SessionManager.setContext(GlobalConstants.USERCONTEXT_TASK);
        SessionManager.addContext(GlobalConstants.USERCONTEXT_TASKAINFO);

        StackNavigatorController stackNavigatorController = new StackNavigatorController();
        stackNavigatorController.setEntityIdValue(objectId);
        stackNavigatorController.setServiceLayerClass(ProjectTasksListLayer.class);

        ActionScriptParserProjectTaskOpen projectTaskOpenActionScriptParser = new ActionScriptParserProjectTaskOpen();
        projectTaskOpenActionScriptParser.setTaskId(objectId);

        TabSheetController tabSheetController = new TabSheetController();
        tabSheetController.setAlign("vertical");
        tabSheetController.setActionScriptParser(projectTaskOpenActionScriptParser);
    %>

    <jsp:useBean id="menuController" class="com.core.ui.controller.MenuController" scope="session" />

    <sorokina:PageTitleView />

    <sorokina:PageMenuView datasource="<%=menuController %>" />

    <sorokina:PageHeader datasource="<%=stackNavigatorController %>" />

    <div class="maincontainer">
        <sorokina:TabSheetView datasource="<%=tabSheetController %>" />

        <div class="datacontainer" id="datacountainer">
            <jsp:include page="<%=tabSheetController.selectedJspNameInContext()%>"></jsp:include>
        </div>
    </div>
</body>
</html>